Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Kafka metric support for 3 labels #778

Merged

Conversation

ctrlaltluc
Copy link
Contributor

@ctrlaltluc ctrlaltluc commented Mar 17, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets n/a
License Apache 2.0

What's in this PR?

PR enables Kafka JMX metrics with 3 labels, for both counters and gauges.

Why?

The current JMX Prometheus agent configuration does not support more than 2 JMX metric labels.
This results in some labels being erroneously parsed e.g.

kafka_network_requestmetrics_fifteenminuterate{name_ErrorsPerSec_request="ApiVersions",error="NONE",} 0.7567675751254123

instead of:

kafka_network_requestmetrics_fifteenminuterate{name="ErrorsPerSec",request="ApiVersions",error="NONE",} 0.786777163057294

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)

@ctrlaltluc ctrlaltluc requested a review from a team as a code owner March 17, 2022 08:45
@stoader stoader merged commit fbce6a0 into banzaicloud:master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants